package huatu;

public class Yuan extends Juxing{
	double r;

	public Yuan(String name, double r) {
		super(name, r, r);
		this.r = r;
	}

	public double getzhou() {
		return 3.14 * 2 * r;
	}

	public double getmian() {
		return 3.14 * Math.pow(r, 2);
	}
}
